Integrand size = 23, antiderivative size = 181 \[ \int \tan ^3(c+d x) (a+b \tan (c+d x))^{3/2} \, dx=\frac {(a-i b)^{3/2} \text {arctanh}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a-i b}}\right )}{d}+\frac {(a+i b)^{3/2} \text {arctanh}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a+i b}}\right )}{d}-\frac {2 a \sqrt {a+b \tan (c+d x)}}{d}-\frac {2 (a+b \tan (c+d x))^{3/2}}{3 d}-\frac {4 a (a+b \tan (c+d x))^{5/2}}{35 b^2 d}+\frac {2 \tan (c+d x) (a+b \tan (c+d x))^{5/2}}{7 b d} \]
[Out]
Time = 0.47 (sec) , antiderivative size = 181, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.348, Rules used = {3647, 3711, 12, 3609, 3620, 3618, 65, 214} \[ \int \tan ^3(c+d x) (a+b \tan (c+d x))^{3/2} \, dx=\frac {(a-i b)^{3/2} \text {arctanh}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a-i b}}\right )}{d}+\frac {(a+i b)^{3/2} \text {arctanh}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a+i b}}\right )}{d}-\frac {4 a (a+b \tan (c+d x))^{5/2}}{35 b^2 d}+\frac {2 \tan (c+d x) (a+b \tan (c+d x))^{5/2}}{7 b d}-\frac {2 (a+b \tan (c+d x))^{3/2}}{3 d}-\frac {2 a \sqrt {a+b \tan (c+d x)}}{d} \]
[In]
[Out]
Rule 12
Rule 65
Rule 214
Rule 3609
Rule 3618
Rule 3620
Rule 3647
Rule 3711
Rubi steps \begin{align*} \text {integral}& = \frac {2 \tan (c+d x) (a+b \tan (c+d x))^{5/2}}{7 b d}+\frac {2 \int (a+b \tan (c+d x))^{3/2} \left (-a-\frac {7}{2} b \tan (c+d x)-a \tan ^2(c+d x)\right ) \, dx}{7 b} \\ & = -\frac {4 a (a+b \tan (c+d x))^{5/2}}{35 b^2 d}+\frac {2 \tan (c+d x) (a+b \tan (c+d x))^{5/2}}{7 b d}+\frac {2 \int -\frac {7}{2} b \tan (c+d x) (a+b \tan (c+d x))^{3/2} \, dx}{7 b} \\ & = -\frac {4 a (a+b \tan (c+d x))^{5/2}}{35 b^2 d}+\frac {2 \tan (c+d x) (a+b \tan (c+d x))^{5/2}}{7 b d}-\int \tan (c+d x) (a+b \tan (c+d x))^{3/2} \, dx \\ & = -\frac {2 (a+b \tan (c+d x))^{3/2}}{3 d}-\frac {4 a (a+b \tan (c+d x))^{5/2}}{35 b^2 d}+\frac {2 \tan (c+d x) (a+b \tan (c+d x))^{5/2}}{7 b d}-\int (-b+a \tan (c+d x)) \sqrt {a+b \tan (c+d x)} \, dx \\ & = -\frac {2 a \sqrt {a+b \tan (c+d x)}}{d}-\frac {2 (a+b \tan (c+d x))^{3/2}}{3 d}-\frac {4 a (a+b \tan (c+d x))^{5/2}}{35 b^2 d}+\frac {2 \tan (c+d x) (a+b \tan (c+d x))^{5/2}}{7 b d}-\int \frac {-2 a b+\left (a^2-b^2\right ) \tan (c+d x)}{\sqrt {a+b \tan (c+d x)}} \, dx \\ & = -\frac {2 a \sqrt {a+b \tan (c+d x)}}{d}-\frac {2 (a+b \tan (c+d x))^{3/2}}{3 d}-\frac {4 a (a+b \tan (c+d x))^{5/2}}{35 b^2 d}+\frac {2 \tan (c+d x) (a+b \tan (c+d x))^{5/2}}{7 b d}+\frac {1}{2} \left (i (a-i b)^2\right ) \int \frac {1+i \tan (c+d x)}{\sqrt {a+b \tan (c+d x)}} \, dx-\frac {1}{2} \left (i (a+i b)^2\right ) \int \frac {1-i \tan (c+d x)}{\sqrt {a+b \tan (c+d x)}} \, dx \\ & = -\frac {2 a \sqrt {a+b \tan (c+d x)}}{d}-\frac {2 (a+b \tan (c+d x))^{3/2}}{3 d}-\frac {4 a (a+b \tan (c+d x))^{5/2}}{35 b^2 d}+\frac {2 \tan (c+d x) (a+b \tan (c+d x))^{5/2}}{7 b d}-\frac {(a-i b)^2 \text {Subst}\left (\int \frac {1}{(-1+x) \sqrt {a-i b x}} \, dx,x,i \tan (c+d x)\right )}{2 d}-\frac {(a+i b)^2 \text {Subst}\left (\int \frac {1}{(-1+x) \sqrt {a+i b x}} \, dx,x,-i \tan (c+d x)\right )}{2 d} \\ & = -\frac {2 a \sqrt {a+b \tan (c+d x)}}{d}-\frac {2 (a+b \tan (c+d x))^{3/2}}{3 d}-\frac {4 a (a+b \tan (c+d x))^{5/2}}{35 b^2 d}+\frac {2 \tan (c+d x) (a+b \tan (c+d x))^{5/2}}{7 b d}-\frac {\left (i (a-i b)^2\right ) \text {Subst}\left (\int \frac {1}{-1-\frac {i a}{b}+\frac {i x^2}{b}} \, dx,x,\sqrt {a+b \tan (c+d x)}\right )}{b d}+\frac {\left (i (a+i b)^2\right ) \text {Subst}\left (\int \frac {1}{-1+\frac {i a}{b}-\frac {i x^2}{b}} \, dx,x,\sqrt {a+b \tan (c+d x)}\right )}{b d} \\ & = \frac {(a-i b)^{3/2} \text {arctanh}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a-i b}}\right )}{d}+\frac {(a+i b)^{3/2} \text {arctanh}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a+i b}}\right )}{d}-\frac {2 a \sqrt {a+b \tan (c+d x)}}{d}-\frac {2 (a+b \tan (c+d x))^{3/2}}{3 d}-\frac {4 a (a+b \tan (c+d x))^{5/2}}{35 b^2 d}+\frac {2 \tan (c+d x) (a+b \tan (c+d x))^{5/2}}{7 b d} \\ \end{align*}
Time = 1.76 (sec) , antiderivative size = 170, normalized size of antiderivative = 0.94 \[ \int \tan ^3(c+d x) (a+b \tan (c+d x))^{3/2} \, dx=\frac {(a-i b)^{3/2} \text {arctanh}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a-i b}}\right )}{d}+\frac {(a+i b)^{3/2} \text {arctanh}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a+i b}}\right )}{d}+\frac {2 \sqrt {a+b \tan (c+d x)} \left (-2 a \left (3 a^2+70 b^2\right )+b \left (3 a^2-35 b^2\right ) \tan (c+d x)+24 a b^2 \tan ^2(c+d x)+15 b^3 \tan ^3(c+d x)\right )}{105 b^2 d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(862\) vs. \(2(151)=302\).
Time = 0.29 (sec) , antiderivative size = 863, normalized size of antiderivative = 4.77
method | result | size |
derivativedivides | \(\frac {2 \left (a +b \tan \left (d x +c \right )\right )^{\frac {7}{2}}}{7 d \,b^{2}}-\frac {2 a \left (a +b \tan \left (d x +c \right )\right )^{\frac {5}{2}}}{5 b^{2} d}-\frac {2 \left (a +b \tan \left (d x +c \right )\right )^{\frac {3}{2}}}{3 d}-\frac {2 a \sqrt {a +b \tan \left (d x +c \right )}}{d}+\frac {\ln \left (\sqrt {a +b \tan \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-b \tan \left (d x +c \right )-a -\sqrt {a^{2}+b^{2}}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}}{4 d}-\frac {\ln \left (\sqrt {a +b \tan \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-b \tan \left (d x +c \right )-a -\sqrt {a^{2}+b^{2}}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a}{2 d}-\frac {\arctan \left (\frac {\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-2 \sqrt {a +b \tan \left (d x +c \right )}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right ) \sqrt {a^{2}+b^{2}}\, a}{d \sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}+\frac {\arctan \left (\frac {\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-2 \sqrt {a +b \tan \left (d x +c \right )}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right ) a^{2}}{d \sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}-\frac {b^{2} \arctan \left (\frac {\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-2 \sqrt {a +b \tan \left (d x +c \right )}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right )}{d \sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}-\frac {\ln \left (b \tan \left (d x +c \right )+a +\sqrt {a +b \tan \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}+\sqrt {a^{2}+b^{2}}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}}{4 d}+\frac {\ln \left (b \tan \left (d x +c \right )+a +\sqrt {a +b \tan \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}+\sqrt {a^{2}+b^{2}}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a}{2 d}+\frac {\arctan \left (\frac {2 \sqrt {a +b \tan \left (d x +c \right )}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right ) \sqrt {a^{2}+b^{2}}\, a}{d \sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}-\frac {\arctan \left (\frac {2 \sqrt {a +b \tan \left (d x +c \right )}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right ) a^{2}}{d \sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}+\frac {b^{2} \arctan \left (\frac {2 \sqrt {a +b \tan \left (d x +c \right )}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right )}{d \sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\) | \(863\) |
default | \(\frac {2 \left (a +b \tan \left (d x +c \right )\right )^{\frac {7}{2}}}{7 d \,b^{2}}-\frac {2 a \left (a +b \tan \left (d x +c \right )\right )^{\frac {5}{2}}}{5 b^{2} d}-\frac {2 \left (a +b \tan \left (d x +c \right )\right )^{\frac {3}{2}}}{3 d}-\frac {2 a \sqrt {a +b \tan \left (d x +c \right )}}{d}+\frac {\ln \left (\sqrt {a +b \tan \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-b \tan \left (d x +c \right )-a -\sqrt {a^{2}+b^{2}}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}}{4 d}-\frac {\ln \left (\sqrt {a +b \tan \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-b \tan \left (d x +c \right )-a -\sqrt {a^{2}+b^{2}}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a}{2 d}-\frac {\arctan \left (\frac {\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-2 \sqrt {a +b \tan \left (d x +c \right )}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right ) \sqrt {a^{2}+b^{2}}\, a}{d \sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}+\frac {\arctan \left (\frac {\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-2 \sqrt {a +b \tan \left (d x +c \right )}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right ) a^{2}}{d \sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}-\frac {b^{2} \arctan \left (\frac {\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-2 \sqrt {a +b \tan \left (d x +c \right )}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right )}{d \sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}-\frac {\ln \left (b \tan \left (d x +c \right )+a +\sqrt {a +b \tan \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}+\sqrt {a^{2}+b^{2}}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}}{4 d}+\frac {\ln \left (b \tan \left (d x +c \right )+a +\sqrt {a +b \tan \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}+\sqrt {a^{2}+b^{2}}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a}{2 d}+\frac {\arctan \left (\frac {2 \sqrt {a +b \tan \left (d x +c \right )}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right ) \sqrt {a^{2}+b^{2}}\, a}{d \sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}-\frac {\arctan \left (\frac {2 \sqrt {a +b \tan \left (d x +c \right )}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right ) a^{2}}{d \sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}+\frac {b^{2} \arctan \left (\frac {2 \sqrt {a +b \tan \left (d x +c \right )}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right )}{d \sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\) | \(863\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 817 vs. \(2 (147) = 294\).
Time = 0.26 (sec) , antiderivative size = 817, normalized size of antiderivative = 4.51 \[ \int \tan ^3(c+d x) (a+b \tan (c+d x))^{3/2} \, dx=\frac {105 \, b^{2} d \sqrt {\frac {a^{3} - 3 \, a b^{2} + d^{2} \sqrt {-\frac {9 \, a^{4} b^{2} - 6 \, a^{2} b^{4} + b^{6}}{d^{4}}}}{d^{2}}} \log \left (-{\left (3 \, a^{4} + 2 \, a^{2} b^{2} - b^{4}\right )} \sqrt {b \tan \left (d x + c\right ) + a} + {\left (d^{3} \sqrt {-\frac {9 \, a^{4} b^{2} - 6 \, a^{2} b^{4} + b^{6}}{d^{4}}} - {\left (3 \, a^{3} - a b^{2}\right )} d\right )} \sqrt {\frac {a^{3} - 3 \, a b^{2} + d^{2} \sqrt {-\frac {9 \, a^{4} b^{2} - 6 \, a^{2} b^{4} + b^{6}}{d^{4}}}}{d^{2}}}\right ) - 105 \, b^{2} d \sqrt {\frac {a^{3} - 3 \, a b^{2} + d^{2} \sqrt {-\frac {9 \, a^{4} b^{2} - 6 \, a^{2} b^{4} + b^{6}}{d^{4}}}}{d^{2}}} \log \left (-{\left (3 \, a^{4} + 2 \, a^{2} b^{2} - b^{4}\right )} \sqrt {b \tan \left (d x + c\right ) + a} - {\left (d^{3} \sqrt {-\frac {9 \, a^{4} b^{2} - 6 \, a^{2} b^{4} + b^{6}}{d^{4}}} - {\left (3 \, a^{3} - a b^{2}\right )} d\right )} \sqrt {\frac {a^{3} - 3 \, a b^{2} + d^{2} \sqrt {-\frac {9 \, a^{4} b^{2} - 6 \, a^{2} b^{4} + b^{6}}{d^{4}}}}{d^{2}}}\right ) - 105 \, b^{2} d \sqrt {\frac {a^{3} - 3 \, a b^{2} - d^{2} \sqrt {-\frac {9 \, a^{4} b^{2} - 6 \, a^{2} b^{4} + b^{6}}{d^{4}}}}{d^{2}}} \log \left (-{\left (3 \, a^{4} + 2 \, a^{2} b^{2} - b^{4}\right )} \sqrt {b \tan \left (d x + c\right ) + a} + {\left (d^{3} \sqrt {-\frac {9 \, a^{4} b^{2} - 6 \, a^{2} b^{4} + b^{6}}{d^{4}}} + {\left (3 \, a^{3} - a b^{2}\right )} d\right )} \sqrt {\frac {a^{3} - 3 \, a b^{2} - d^{2} \sqrt {-\frac {9 \, a^{4} b^{2} - 6 \, a^{2} b^{4} + b^{6}}{d^{4}}}}{d^{2}}}\right ) + 105 \, b^{2} d \sqrt {\frac {a^{3} - 3 \, a b^{2} - d^{2} \sqrt {-\frac {9 \, a^{4} b^{2} - 6 \, a^{2} b^{4} + b^{6}}{d^{4}}}}{d^{2}}} \log \left (-{\left (3 \, a^{4} + 2 \, a^{2} b^{2} - b^{4}\right )} \sqrt {b \tan \left (d x + c\right ) + a} - {\left (d^{3} \sqrt {-\frac {9 \, a^{4} b^{2} - 6 \, a^{2} b^{4} + b^{6}}{d^{4}}} + {\left (3 \, a^{3} - a b^{2}\right )} d\right )} \sqrt {\frac {a^{3} - 3 \, a b^{2} - d^{2} \sqrt {-\frac {9 \, a^{4} b^{2} - 6 \, a^{2} b^{4} + b^{6}}{d^{4}}}}{d^{2}}}\right ) + 4 \, {\left (15 \, b^{3} \tan \left (d x + c\right )^{3} + 24 \, a b^{2} \tan \left (d x + c\right )^{2} - 6 \, a^{3} - 140 \, a b^{2} + {\left (3 \, a^{2} b - 35 \, b^{3}\right )} \tan \left (d x + c\right )\right )} \sqrt {b \tan \left (d x + c\right ) + a}}{210 \, b^{2} d} \]
[In]
[Out]
\[ \int \tan ^3(c+d x) (a+b \tan (c+d x))^{3/2} \, dx=\int \left (a + b \tan {\left (c + d x \right )}\right )^{\frac {3}{2}} \tan ^{3}{\left (c + d x \right )}\, dx \]
[In]
[Out]
\[ \int \tan ^3(c+d x) (a+b \tan (c+d x))^{3/2} \, dx=\int { {\left (b \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \tan \left (d x + c\right )^{3} \,d x } \]
[In]
[Out]
Timed out. \[ \int \tan ^3(c+d x) (a+b \tan (c+d x))^{3/2} \, dx=\text {Timed out} \]
[In]
[Out]
Time = 23.98 (sec) , antiderivative size = 1229, normalized size of antiderivative = 6.79 \[ \int \tan ^3(c+d x) (a+b \tan (c+d x))^{3/2} \, dx=\text {Too large to display} \]
[In]
[Out]